#include <stdio.h>
int main(){
	int a;
	int b;
	int num=0;
	int c=0;
	while(1){
		printf("a=");
		scanf("%d",&a);
		printf("b=");
		scanf("%d",&b);
		while(b!=0){
			num = a ^ b;
			c = (a & b) << 1;
			a = num;
			b = c;
		}
		printf("a + b=%d\n",num);
		printf("a / b=%d\n",num >> 1);
    }
}

